﻿using Furion.ConfigurableOptions;

namespace Queer.Mqtt.Core.Model
{
    [OptionsSettings("MqttConfig")]
    public class MqttConfig : IConfigurableOptions
    {
        /// <summary>
        /// 是否启用MQTT服务
        /// </summary>
        public bool MqttIsOpen { set; get; } = false;

        /// <summary>
        /// MQTT服务地址
        /// </summary>
        public string MqttTcpServer { set; get; }

        /// <summary>
        /// MQTT服务端口
        /// </summary>
        public int? MqttTcpHost { get; set; } = 80;

        /// <summary>
        /// MQTT用户名
        /// </summary>
        public string MqttUserName { set; get; }

        /// <summary>
        /// MQTT密码
        /// </summary>
        public string MqttPasswrod { set; get; }

    }
}
